package hy.dao;

import hy.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IUserDao2 {
    List<User> select1(String name);
    //表名和字段名可通过参数传递
    List<User>select3(@Param("tablename") String tn, @Param("ordername") String on);
    //通过在datasource.properties中添加值
//tablename=user
//ordername=name
    List<User>select2();
    List<User>select4(@Param("name") String name,@Param("password") String pass);

    List<User>select5(String name, String pass);

    List<User>select6(User u);
    List<User> selectAll_tel();
    List<User> selectAll_map();

}
